/* ═══════════════════════════════════════════════════════════════
   courbe_prix.css  —  YourSwissPc
   Base originale conservée intégralement + styles page courbe des prix
   ═══════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────
   BASE ORIGINALE (ne pas modifier)
   ────────────────────────────────────────────────────────────── */

html,
body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
  background-color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  color: #000000;
  margin: 0;
}

/* Colonne gauche (logo) */
.header-left {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Colonne centrale (menu) */
.header-center {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Colonne droite (bouton Connexion) */
.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 160px;
  padding: 0 3rem;
  background-color: #121212;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  font-family: 'Segoe UI', sans-serif;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.logo-img {
  height: 80%;
  object-fit: contain;
  max-height: 120px;
  margin-bottom: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00d1b2;
}

.login-button {
  padding: 0.6rem 1.2rem;
  background-color: #540886;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #a00070;
}

/* ── Menu burger ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background-color: white;
  border-radius: 5px;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ── Responsive tablettes ── */
@media (max-width: 1024px) {
  .site-header {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 1rem;
  }

  .logo-img {
    max-height: 120px;
    margin-bottom: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .header-right {
    margin-top: 1rem;
  }
}

/* ── Responsive smartphones ── */
@media (max-width: 600px) {
  body {
    font-size: 0.9rem;
  }

  .site-header {
    height: 80px;
    padding: 0 1rem;
    overflow: visible;
    position: relative;
  }

  .logo-img {
    max-height: 400px;
    height: auto;
    margin-top: -160px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ── Responsive 900px (burger menu) ── */
@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    padding: 1rem;
    position: relative;
  }

  .logo-img {
    max-width: 300px;
    height: auto;
    margin: 10px auto;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 25px;
    z-index: 1000;
    cursor: pointer;
  }

  .header-center {
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #121212;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #333;
    gap: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    flex: 1 1 28%;
    min-width: 100px;
  }

  .nav-links a {
    display: inline-block;
    width: 100%;
    background-color: #1e1e1e;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.8rem 0;
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }

  .nav-links a:hover {
    background-color: #540886;
  }

  .header-right {
    display: none;
    margin-top: 1rem;
  }

  .login-button {
    width: auto;
    padding: 0.6rem 1.2rem;
  }
}


/* ──────────────────────────────────────────────────────────────
   PAGE COURBE DES PRIX
   Couleurs reprises du site : #00d1b2 (hover nav) / #540886 (bouton login)
   ────────────────────────────────────────────────────────────── */

:root {
  --cp-bg:          #ffffff;
  --cp-card:        #222222;
  --cp-card2:       #222222;
  --cp-border:      #2e2e2e;
  --cp-accent:      #00d1b2;        /* couleur hover nav existante */
  --cp-accent-glow: rgba(0, 209, 178, 0.12);
  --cp-purple:      #540886;        /* couleur bouton login existante */
  --cp-text:        #e8e8e8;
  --cp-muted:       #c0c2c7;
  --cp-green:       #22c55e;
  --cp-red:         #ef4444;
  --cp-radius:      10px;
}

body {
  background-color: var(--cp-bg);
  color: var(--cp-text);
}

/* ── Hero ── */
.page-hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
  border-bottom: 1px solid var(--cp-border);
}

.page-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 1px;
  color: black;
  text-shadow: 0 0 32px var(--cp-accent-glow);
}

.page-hero p {
  margin-top: 1.3rem;
  color: black;
  font-family: 'Segoe UI', sans-serif;
  font-size: .9rem;
}

/* ── Layout ── */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ── Sélecteurs ── */
.selectors-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
  min-width: 200px;
}

.selector-group label {
  font-family: 'Orbitron', sans-serif;
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--cp-muted);
  text-transform: uppercase;
}

.selector-group select {
  background-color: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  color: var(--cp-text);
  padding: .65rem 2.5rem .65rem 1rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.selector-group select:focus {
  outline: none;
  border-color: var(--cp-accent);
  box-shadow: 0 0 0 3px var(--cp-accent-glow);
}

.selector-group select:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: border-color .2s;
}

.stat-card:hover {
  border-color: var(--cp-accent);
}

.stat-label {
  font-family: 'Segoe UI', sans-serif;
  font-size: .80rem;
  letter-spacing: .12em;
  color: var(--cp-muted);
  text-transform: uppercase;
}

.stat-value {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  color: var(--cp-text);
}

.stat-value.accent   { color: var(--cp-accent); }
.stat-value.positive { color: var(--cp-green);  }
.stat-value.negative { color: var(--cp-red);    }

/* ── Barre de période ── */
.period-bar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.2rem;
}

.period-btn {
  font-family: 'Segoe UI', sans-serif;
  font-size: .7rem;
  letter-spacing: .08em;
  padding: .35rem .85rem;
  border-radius: 6px;
  border: 1px solid var(--cp-border);
  background: var(--cp-card2);
  color: var(--cp-muted);
  cursor: pointer;
  transition: all .2s;
}

.period-btn:hover {
  border-color: var(--cp-accent);
  color: var(--cp-accent);
}

.period-btn.active {
  border-color: var(--cp-accent);
  background: var(--cp-accent-glow);
  color: var(--cp-accent);
}

/* ── Graphiques ── */
.chart-card {
  background: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.chart-card h2 {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  letter-spacing: .12em;
  color: var(--cp-muted);
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.chart-wrapper {
  position: relative;
  height: 320px;
}

/* ── Comparaison chips ── */
.compare-section { margin-top: .5rem; }

.compare-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.4rem;
}

.chip {
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
  padding: .35rem .9rem;
  border-radius: 20px;
  border: 1px solid var(--cp-border);
  background: var(--cp-card2);
  color: var(--cp-muted);
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}

.chip:hover         { border-color: var(--cp-accent); color: var(--cp-accent); }
.chip.active        { border-color: var(--cp-accent); color: var(--cp-accent); background: var(--cp-accent-glow); }

/* ── État vide ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--cp-muted);
  font-family: 'Segoe UI', sans-serif;
  font-size: .9rem;
  line-height: 1.8;
}

.empty-state svg { margin-bottom: 1.2rem; opacity: .25; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--cp-border);
  color: var(--cp-muted);
  font-family: 'Segoe UI', sans-serif;
  font-size: .78rem;
}

/* ── Responsive page ── */
@media (max-width: 768px) {
  .chart-wrapper  { height: 240px; }
  .stats-row      { grid-template-columns: repeat(2, 1fr); }
  .page-hero      { padding: 2rem 1rem 1.5rem; }
}

@media (max-width: 480px) {
  .stats-row  { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 1rem; }
}